package com.ksana.bean.test.mapper;

import com.ksana.bean.factory.InitializingBean;

import java.util.HashMap;
import java.util.Map;

public class UserMapper implements InitializingBean {
    private static Map<Integer, String> map = new HashMap<>();

//    static {
//        map.put(1, "fall");
//        map.put(2, "fall");
//    }

    public String queryInfo(Integer id) {
        return map.get(id);
    }

    @Override
    public void init() {
        map.put(1, "fall1");
        map.put(2, "fall2");
        map.put(3, "fall3");
    }
}